package com.zhuannimei.utility;


/**
 * 链接管理器
 * 
 * @author XXhong 2013-12-4
 * 
 * 
 */
public class UrlBank {

	public static String getServerIp() {
		return "http://1.dayong.duapp.com/";
	}

	/**
	 * 获取商品列表URL
	 * 
	 * @return
	 */
	public static String getProductList() {
		return getServerIp() + "product/list.action";
	}

	/**
	 * 用户注册
	 * 
	 * @return
	 */
	public static String getUserReg() {
		return "http://1.dayong.duapp.com/user/register.action";
	}

	public static String getUserLogin() {
		return "http://1.dayong.duapp.com/user/login.action";
	}

	/**
	 * 购买商品
	 * 
	 * @return
	 */
	public static String sendBuy() {
		return getServerIp() + "buy.php";
	}

	/**
	 * 购买商品记录
	 * 
	 * @return
	 */
	public static String getHistorys() {
		return getServerIp() + "luck_history.php";
	}

	/**
	 * 获取排行数据
	 * 
	 * @return
	 */
	public static String getUserRank() {	
		return getServerIp() + "point/rank.action";
	}
	
	
	/**
	 * 获取推广列表
	 * 
	 * @return
	 */
	public static String getAdd() {
		return  getServerIp()+"luck/recd.action";
	}
	/**
	 * 获取推广员申请
	 * @return
	 */
	public static String getJoinUs(){
		return getServerIp()+"user/apply.action";
	}

	/**
	 * 抽奖
	 * @return
	 */
	public static String getLottery() {
		return getServerIp()+"luck.php";
	}

	/**
	 *购买商品
	 *http://1.dayong.duapp.com/product/buy.action
	 * @return
	 */
	public static String getProductsFromNet() {
		return getServerIp() + "product/buy.action";
	}
	/**
	 * 获取一元购活动列表
	 * @return
	 */
	public static String getLuckListUrl() {
		return getServerIp()+"luck/list.action";
	}
	/**
	 * 参与一元购
	 * @return
	 */
	public static String getLuck(){
		return getServerIp()+"luck/luck.action";
	}
	/**
	 * 参与一元购记录
	 * @return
	 */
	public static String getLuckHistory(){
		return getServerIp()+"luck/exchangeList.action";
	}
	/**
	 * 参与一元购记录
	 * @return
	 */
	public static String updatePoint(){
		return getServerIp()+"point/addPoint.action";
	}
	
	public static String getProductHistory(){
		return getServerIp()+"product/exchangeList.action";
	}

	/**
	 * 获取用户总积分
	 * @return
	 */
	public static String getMypoint() {
		return getServerIp()+"point/totalPoint.action";
	}
	/**
	 * 获取某一元购活动的期数
	 * @return
	 */
	public static String getPhaseCount(){
		return getServerIp()+"luck/phaseNum.action";
	}
	
	/**
	 * 获取活动的参与者列表
	 * @return
	 */
	public static String getJoinList(){
		return getServerIp()+"luck/joinList.action";
	}
	
	/**
	 * 查询活动详情
	 * @return
	 */
	public static String getLuckDetail(){
		return getServerIp()+"luck/detail.action";
	}
}
